package com.angus.modules.content.controller.work;

import com.angus.common.core.web.controller.BaseController;
import com.angus.common.core.web.domain.AjaxResult;
import com.angus.modules.content.dto.EnCourseQuestionDto;
import com.angus.modules.content.service.IEnQuestionService;
import com.angus.modules.content.vo.EnCourseQuestionVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liyanan
 * @date 2024/11/24 3:56 PM
 * @description
 */
@RestController
@RequestMapping("/en")
public class EnQuestionController extends BaseController {

    @Resource
    private IEnQuestionService enQuestionService;

    @RequestMapping("/getQuestion")
    public AjaxResult getQuestion(@RequestBody EnCourseQuestionDto dto){

        List<EnCourseQuestionVo> question = enQuestionService.getQuestion(dto);
        return AjaxResult.success(question);
    }

}
